import { lazy } from "react";
import { Navigate, createBrowserRouter } from "react-router-dom";
let Home = lazy(() => import("../views/Home/Home"))
let List = lazy(() => import("../views/List/List"))
let Swiper = lazy(() => import("../views/Swiper/MySwiper"))
const routes = createBrowserRouter([
    {
        path: "/",
        element: <Navigate to="/Home"></Navigate>
    },
    {
        path: "/Home",
        element: <Home></Home>
    },
    {
        path: "/List",
        element: <List></List>
    },
    {
        path: "/Swiper",
        element: <Swiper></Swiper>
    },
])
export default routes